package dk.sdu.mmmi.opn.assignment3easy.acquaintance;

import java.io.Serializable;

/**
 * Product that has a name and a price
 * (part of the model layer of the application)
 * @author ups
 */
public class Product implements Serializable {
	
	/**
	 * Name of the product
	 */
	private String name;
	
	/**
	 * Price of the product
	 */
	private float price;

	/**
	 * Create product with the given name and price
	 */
	public Product(String name, float price) {
		this.name = name;
		this.price = price;
	}
	
	/**
	 * Get name of product
	 */
	public String getName() { return name; }
	
	/**
	 * Get price of product
	 */
	public float getPrice() { return price; }
	
	private static final long serialVersionUID = -7924067724542288596L;
}
